﻿using BCEntity.OA.Notification.NotificationCategory;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BCData.OA.Notification.NotificationCategory
{
    /// <summary>
    /// 通知分类
    /// </summary>
	public interface INotificationCategoryData
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        /// <param name="notificationCategoryId">通知分类Id</param>
        Task<bool> Exists(long notificationCategoryId);
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        /// <param name="NotificationCategoryCode">通知分类编码</param>
        Task<bool> Exists(string NotificationCategoryCode);
        /// <summary>
        /// 增加通知分类
        /// </summary>
        /// <param name="entity">通知分类信息</param>
        Task<NotificationCategoryEntity> Add(NotificationCategoryEntity entity);
        /// <summary>
        /// 更新通知分类
        /// </summary>
        /// <param name="entity">通知分类信息</param>
        Task<NotificationCategoryEntity> Update(NotificationCategoryEntity entity);
        /// <summary>
        /// 删除通知分类
        /// </summary>
        /// <param name="notificationCategoryId">通知分类Id</param>
        Task<bool> Delete(long notificationCategoryId);
        /// <summary>
        /// 获取通知分类
        /// </summary>
        /// <param name="notificationCategoryId">通知分类Id</param>
        Task<NotificationCategoryEntity> GetEntity(long notificationCategoryId);
        /// <summary>
        /// 获取通知分类列表
        /// </summary>
        Task<IEnumerable<NotificationCategoryEntity>> GetList();
        /// <summary>
        /// 获取通知分类分页列表
        /// </summary>
        /// <param name="notificationCategoryName">通知分类名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">通知分类每页数据条数</param>
        Task<(IEnumerable<NotificationCategoryEntity>, int)> Query(string notificationCategoryName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }

}
